docker network create \
	--driver bridge \
	--subnet 172.22.1.0/24 \
	--gateway 172.22.1.1 \
	mybridge


docker run \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	-p 3306:3306 \
	--name winit-mysql \
	-e MYSQL_ROOT_PASSWORD=123456 \
	--network mybridge \
	--ip 172.22.1.33 \
	-v /home/ma/mysql:/var/lib/mysql \
  	-v /home/ma/my.cnf:/etc/my.cnf \
	-d mysql:8.0


docker run \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.63 \
	-p 6379:6379 \
	--name redis-6379 \
	 --privileged=true \
	-v /home/redis/redis-6379/redis-6379.conf:/etc/redis/redis-6379.conf \
	-v /home/redis/redis-6379/data:/data \
	-d redis \
	redis-server /etc/redis/redis-6379.conf  \
	--appendonly yes



docker run \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.56 \
	-d \
	--hostname myrabbit \
	--name rabbit \
	-p 15672:15672 \
	-p 5672:5672 \
	rabbitmq:management


# docker run -d \
# 	--log-opt max-size=100m \
# 	--log-opt max-file=2 \
# 	--network mybridge \
# 	--ip 172.22.1.92 \
# 	--name es01 \
# 	-e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
# 	-p 9200:9200 \
# 	-p 9300:9300 \
# 	elasticsearch

docker run --name elasticsearch \
--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.92 \
-e "discovery.type=single-node" \
-e "cluster.name=elasticsearch" \
-e "ES_JAVA_OPTS=-Xms512m -Xmx1024m" \
-v /home/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
-v /home/elasticsearch/logs:/usr/share/elasticsearch/logs \
-v /home/elasticsearch/data:/usr/share/elasticsearch/data \
-d elasticsearch:7.17.3



docker run --name logstash \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.45 \
--link elasticsearch:es \
-v /home/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf \
-d logstash:7.17.3

docker run --name kibana -p 5601:5601 \
--link elasticsearch:es \
-e "elasticsearch.hosts=http://es:9200" \
-d kibana:7.17.3


docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.93 \
	--name es02 \
	-e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
	-p 9201:9200 \
	-p 9301:9300 \
	elasticsearch:2.4.6


docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.21 \
	--name zk \
	-e TZ="Asia/Shanghai" \
	-p 2181:2181 \
	zookeeper:3.4.9

docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.21 \
	--name cs \
	 -p 8500:8500 \
	-p 8300:8300 \
	-p 8301:8301 \
	-p 8302:8302 \
	-p 8600:8600 \
	consul:1.6.1 agent \
	-server -bootstrap-expect=1 \
	-ui -bind=0.0.0.0 -client=0.0.0.0


docker run \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.99 \
	 -d \
	 -p 9980:80 \
	 -p 9922:22 \
	 -v /home/gitlab/etc:/etc/gitlab  \
	 -v /home/gitlab/log:/var/log/gitlab \
	 -v /home/gitlab/opt:/var/opt/gitlab \
	 --privileged=true \
	 --name gitlab \
	 --hostname www.services.lookworld.com \
	 gitlab/gitlab-ce

docker run \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.94 \
	-d -p 9411:9411 \
	openzipkin/zipkin
	
	
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.88 \
	-p 8848:8848 \
	-e MODE=standalone \
	--privileged=true \
	-e PREFER_HOST_MODE=hostname \
	# -v /home/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties \
	-v /home/nacos/logs:/home/nacos/logs \
	--restart always \
	--name nacos \
	nacos/nacos-server:1.1.4
	
	
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.88 \
	-p 8848:8848 \
	-e MODE=standalone \
	--privileged=true \
	-e PREFER_HOST_MODE=hostname \
	-v /home/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties \
	-v /home/nacos/logs:/home/nacos/logs \
	--restart always \
	--name nacos_mysql \
	nacos/nacos-server:1.1.4
	
	
	
version: '3'
services:
  wgcloud:
    image: tianshiyeben/wgcloud-server:v3.4.4
    container_name: wgcloud-server
    restart: unless-stopped
    privileged: true
    environment:
      - TZ=Asia/Shanghai
    ports:
      - 9997:9997
      - 9998:9998
      - 9999:9999
    volumes:
      - ./config:/wgcloud-server/config
      #- ./license.txt:/wgcloud-server/license.txt
      #- ./logo:/wgcloud-sever/logo

docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.97 \
	-p 9997:9997 \
	-p 9998:9998 \
	-p 9999:9999 \
	-v /home/wgcloud-server:/wgcloud-server \
	--privileged=true \
	--name wgcloud-server \
	-e TZ=Asia/Shanghai \
	tianshiyeben/wgcloud-server:v3.4.4

	  
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.85 \
	-p 8858:8858 \
	-p 8719:8719 \
	--name sentinel \
	bladex/sentinel-dashboard
	
docker run -p 80:80 \
    -p 8182:8182 \
	-p 443:443 \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.80 \
	-v /home/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
	-v /home/nginx/conf/conf.d:/etc/nginx/conf.d \
	-v /home/nginx/log:/var/log/nginx \
	-v /home/nginx/html:/usr/share/nginx/html \
	-v /home/nginx/cert:/etc/nginx/cert \
	--name nginx \
	-d nginx:latest

docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.8 \
	--name phpmyadmin \
	-e PMA_ARBITRARY=1 \
	-e PMA_HOST=172.22.1.33 \
	-e PMA_PORT=3306 \
	-e MYSQL_ROOT_PASSWORD=123456 \
	phpmyadmin/phpmyadmin



docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.81 \
	--name showdoc \
	--user=root \
	--privileged=true \
	-p 4999:80 \
	-v /home/showdoc/html:/var/www/html \
	registry.cn-shenzhen.aliyuncs.com/star7th/showdoc:latest

docker pull registry.cn-shenzhen.aliyuncs.com/star7th/showdoc

docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.22 \
	-e zk:2181 \
	--name zkui \
	qnib/zkui

# -p 9600:8080 \
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.82 \
	--name dubbo-admin \
	-v /home/dubbo-admin/data:/data \
	-e DUBBO_REGISTRY="zookeeper:\/\/zk:2181" \
	-e DUBBO_ROOT_PASSWORD=root \
	-e DUBBO_GUEST_PASSWORD=guest \
	riveryang/dubbo-admin

# -p 9095:8080 -p 50000:50000
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.83 \
	-uroot \
	--name jenkins \
	--privileged=true \
	-v /home/jenkins/jenkins_home:/var/jenkins_home \
	-v /home/jenkins/etc/localtime:/etc/localtime \
	-v  /usr/share/maven:/usr/local/maven \
	jenkins/jenkins

mkdir -p /home/jenkins/jenkins_home
mkdir -p /home/jenkins/etc/localtime


# -----------------------------------------------------------------
    #   - "7890:7890/tcp"
    #   - "7890:7890/udp"
    #   - "9090:9090"
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.78 \
	-uroot \
	-v /home/clash:/root/.config/clash \
	--name clash \
	dreamacro/clash # :v1.10.6

# 80:80
docker run -d \
	--log-opt max-size=100m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.79 \
	-uroot \
	--name clash-dashboard \
	hitian/clash-dashboard

  docker run -d --name clickhouse-server \
      --log-opt max-size=100m \
      --log-opt max-file=2 \
      --network mybridge \
      --ip 172.22.1.86 \
      -uroot \
      -p 8123:8123 \
      -p 9009:9009 \
      -p 9090:9000 \
      --ulimit nofile=262144:262144 \
      --volume=/home/clickhouse/data:/var/lib/clickhouse \
      --volume=/home/clickhouse/log:/var/log/clickhouse-server \
      --volume=/home/clickhouse/conf/config.xml:/etc/clickhouse-server/config.xml \
      --volume=/home/clickhouse/conf/users.xml:/etc/clickhouse-server/users.xml \
      yandex/clickhouse-server

docker run --name chatgpt-web -d \
      --log-opt max-size=100m \
      --log-opt max-file=2 \
      --network mybridge \
      --ip 172.22.1.30 \
      -uroot \
      --env OPENAI_ACCESS_TOKEN=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiIyNjg5MTY5NzU3QHFxLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlfSwiaHR0cHM6Ly9hcGkub3BlbmFpLmNvbS9hdXRoIjp7InVzZXJfaWQiOiJ1c2VyLXJTM3VyQTh0VjVqSzJuaFFqQmJpWUVCVyJ9LCJpc3MiOiJodHRwczovL2F1dGgwLm9wZW5haS5jb20vIiwic3ViIjoid2luZG93c2xpdmV8NDU0Mjg4YzFlZDUzOTcxZCIsImF1ZCI6WyJodHRwczovL2FwaS5vcGVuYWkuY29tL3YxIiwiaHR0cHM6Ly9vcGVuYWkub3BlbmFpLmF1dGgwYXBwLmNvbS91c2VyaW5mbyJdLCJpYXQiOjE2ODIyNjIxMDgsImV4cCI6MTY4MzQ3MTcwOCwiYXpwIjoiVGRKSWNiZTE2V29USHROOTVueXl3aDVFNHlPbzZJdEciLCJzY29wZSI6Im9wZW5pZCBwcm9maWxlIGVtYWlsIG1vZGVsLnJlYWQgbW9kZWwucmVxdWVzdCBvcmdhbml6YXRpb24ucmVhZCBvZmZsaW5lX2FjY2VzcyJ9.WimBZgmpYrPHGMeL7tk1d-pbg_izBpLDRLzdFpBrFCnvaINiVzfjuRnmQBRVVeqclQskk305IxyvxX5lhsvDIJjbmNblif-sVMZjdhVAhP-7TiuMA5XyhQvNCpn1S0UByVK3rYDuzNpdGaCtsmL3q9ckRl6L-gI9fqi1c7OejYOjH1N-C_QjRLanvDNprZRSHsDfNrbTkNn8IWeronCZg8HGTJqn4dZunVCpd9LKjWfzCESpvlHvb-AjzyI2yrzIV8J3_WBaR58lqHbvcAzBrEQO9dRU6EYlgbklQYW9pnhlDaPDUL361UoWrKfJxOXkcvHJapRrhHFKeZba9G63kQ \
      chenzhaoyu94/chatgpt-web

docker rm -f minio
 docker run -d \
      --name minio \
      --log-opt max-size=100m \
      --log-opt max-file=2 \
      --network mybridge \
      --ip 172.22.1.90 \
      -uroot \
      --privileged=true \
      -e MINIO_ACCESS_KEY="lookworld" \
      -e MINIO_SECRET_KEY="lookworld" \
      -e MINIO_BROWSER_REDIRECT_URL="http://www.minio.lookworld.com" \
      -v /home/minio/data:/data \
      -v /home/minio/config:/root/.minio \
      minio/minio:latest  server \
      /data --console-address ":9090" -address ":9000"
docker logs minio

docker run -idt \
 	-v /home/docsify:/docsify \
	--log-opt max-size=10m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.31 \
	-uroot \
	--privileged=true \
  	--name docsify \
 	docsify:1.0


docker run  -d --name dns-server \
	--log-opt max-size=10m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.53 \
	-uroot \
	--privileged=true \
--volume /home/docker/dns-server:/data \
sameersbn/bind:latest

# 27017
docker run -d --name mongo \
	--log-opt max-size=10m \
	--log-opt max-file=2 \
	--network mybridge \
	--ip 172.22.1.27 \
	-uroot \
	--privileged=true \
    -v /home/mongodb/data:/data/db \
    mongo --auth
